<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>键盘焦点效果</title>
    <style>
       
        input{
            width: 200px;
            height: 40px;
            transition: all 0.3s ease;
        }
        input:focus{
            outline-color:pink ;
            transform: translate(600px);
        }
        input:hover{
            background-color: aliceblue;
            
        }
    </style>
</head>
<body>
    <form action="">
        <input type="text" placeholder="搜索你喜欢的视频">
    </form>
</body>
</html>